package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class AbnormalDataVo {
    @Data
    @ApiModel("AbnormalDataVo - RuleResult 异常规则")
    public static class RuleResult{
        private Long id;
        @ApiModelProperty("规则名称")
        private String name;
        @ApiModelProperty("最小值(秒)")
        private Integer minValue;
        @ApiModelProperty("最大值(秒)")
        private Integer maxData;
        @ApiModelProperty("是否必填(0：是；1：否)")
        private String must;
        @ApiModelProperty("异常规则类型(0：变量必填；1：变量取值范围；)")
        private Byte type;
        @ApiModelProperty("描述")
        private String remark;
        @ApiModelProperty("创建者")
        private String createBy;
        @ApiModelProperty(" 创建时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;
        @ApiModelProperty("更新者")
        private String updateBy;
        @ApiModelProperty(" 修改时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date updateTime;
    }

    @Data
    @ApiModel("AbnormalDataVo - RuleResult 异常规则")
    public static class AbnoRuleResult{
        @ApiModelProperty("ID")
        private Long id;
        @ApiModelProperty("类别")
        private Long projectCategoryId;
        @ApiModelProperty("规则编号")
        private String num;
        @ApiModelProperty("规则名称")
        private String name;
        @ApiModelProperty("分子变量")
        private String molecule;
        @ApiModelProperty("分母变量")
        private String denominator;
        @ApiModelProperty("计算公式")
        private String formula;
        @ApiModelProperty("描述")
        private String remark;
    }
}
